<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>公共嵌套模板</title>
</head>
<body>

<!--jscss-->
<div th:fragment="jscss">
    <title>啄木鸟控制中心</title>
    <meta charset="utf-8">
    <meta datasetName="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta datasetName="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <script>document.domain = 'xiujiadian.com'</script>
    <link rel="shortcut icon" th:href="${SYS_RES}+'/static/favicon.ico'"/>
    <link rel="stylesheet" th:href="${SYS_RES}+'/static/lay/layui/css/layui.min.css?v=1.4'">
    <link rel="stylesheet" th:href="${SYS_RES}+'/static/lay/style/admin.min.css?v=1.3'">
    <link rel="stylesheet" href="/static/style/style.css">
    <script th:src="${SYS_RES}+'/static/lay/layui/layui.min.js?v=1.4'"></script>
    <script th:src="${SYS_RES}+'/static/js/common/zmn.lay.min.js?v=1.3'"></script>
    <script th:src="${SYS_RES}+'/static/js/common/zmn.lay.config.js?v=1.3'"></script>
</div>

<!--nav-menu-->
<div th:fragment="nav-menu">
    <li class="selected"><a href="http://plat.zmn.cn/" target="_blank">平台管理</a></li>
    <li><a href="http://oms.zmn.cn/" target="_blank">OMS</a></li>
    <li><a href="http://crm.zmn.cn/" target="_blank">CC/CRM</a></li>
    <li><a href="http://scm.zmn.cn/" target="_blank">SCM</a></li>
</div>

<!--menu-->
<div th:fragment="menu">
    <!--系统权限-->
    <li class="layui-nav-item" id="menu">

        <a href="javascript:void(0);"><i class="layui-icon layui-icon-component"></i>系统权限</a>
        <dl class="layui-nav-child">
            <a href="javascript:void(0);"><i class="layui-icon layui-icon-component"></i>菜单配置</a>
            <dl class="layui-nav-child">
                <a lay-href="/mcc/menu/list.action" th:if="${#authPermit.checkMenuPermit('/mcc/menu/list.action')}"><i class="layui-icon layui-icon-component"></i>菜单配置2</a>
            </dl>

            <dd th:if="${#authPermit.checkMenuPermits(false, '/staff/list.action', '/staff/log/list.action')}">
                <a href="javascript:void(0);">人员管理</a>
                <dl class="layui-nav-child" th:if="${#authPermit.checkMenuPermit('/staff/list.action')}">
                    <dd><a lay-href="/staff/list.action" lay-text="人员管理">人员管理</a></dd>
                    <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/staff/log/list.action')}">
                        <a lay-href="/staff/log/list.action">员工操作日志</a>
                    </dd>
                </dl>
            </dd>
            <dd th:if="${#authPermit.checkMenuPermits(false, '/organize/tree.action')}">
                <a href="javascript:void(0);">组织架构</a>
                <dl class="layui-nav-child">
                    <dd th:if="${#authPermit.checkMenuPermit('/organize/tree.action')}">
                        <a lay-href="/organize/tree.action" lay-text="组织架构">组织架构</a></dd>
                </dl>
            </dd>
            <dd th:if="${#authPermit.checkMenuPermits(false, '/role/list.action','/sys/list.action','/module/tree.action','/permit/list.action')}">
                <a href="javascript:void(0);">权限配置</a>
                <dl class="layui-nav-child">
                    <dd th:if="${#authPermit.checkMenuPermit('/role/list.action')}"><a
                            lay-href="/role/list.action" lay-text="角色管理">角色管理</a></dd>
                    <dd th:if="${#authPermit.checkMenuPermit('/sys/list.action')}"><a
                            lay-href="/sys/list.action" lay-text="系统管理">系统管理</a></dd>
                    <dd th:if="${#authPermit.checkMenuPermit('/module/tree.action')}"><a
                            lay-href="/module/tree.action" lay-text="模块管理">模块管理</a></dd>
                    <dd th:if="${#authPermit.checkMenuPermit('/permit/list.action')}"><a
                            lay-href="/permit/list.action" lay-text="权限查询">权限查询</a></dd>
                </dl>
            </dd>
        </dl>
    </li>

</div>

</body>
</html>
